<div class="animated fadeIn">
  <div class="form-group row">
    <label for="title" class="col-sm-2 form-control-label" style="line-height: 35px"><sup style="color:red ">*</sup>新闻标题：</label>
    <div class="col-sm-6">
      <input type="text" class="form-control" id="title"  placeholder="新闻标题" maxlength="20" [(ngModel)]="editWelData.title">
    </div>
  </div>

  <div class="form-group row">
    <span class="col-md-2 text-line"><sup style="color:red ">*</sup>新闻封面：</span>
    <div>
      <app-cropper (updateCropperImg)="commodityPictures($event)"></app-cropper>
      <div class="col-md-3" style="position: relative" *ngIf="detailsPicture">
        <img style="width: 300px;height: 200px" src="{{cropperImg.indexOf('.png') != -1 ? imgUrl + cropperImg : cropperImg}}" class="btn-radius">
        <a href="Javascript:;" class="delete_btuttons" (click)="deleteimg(i)"><i class="icon-close"></i></a>
        <div class="uploads_buttons"  (click)="updateCroppersImg()">{{uploadpictures}}</div>
      </div>
      <div class="col-md-3">
      <button class="btn btn-radius btn-success" *ngIf="!detailsPicture"  (click)="updateCroppersImg()">{{uploadpictures}}</button>
      </div>
    </div>
  </div>

  <div class="form-group row">
    <label for="standard" class="col-sm-2 form-control-label" style="line-height: 35px"><sup style="color:red ">*</sup>选择企业：</label>
    <div class="col-sm-6">
      <select disabled="{{enterpriseRead}}" id="standard" [(ngModel)]="editWelData.id" class="form-control">
        <option *ngFor="let item of nameArr" value="{{item.id}}">{{item.name}}</option>
      </select>
    </div>
  </div>

  <div class="form-group row">
    <label for="goal" class="col-sm-2 form-control-label" style="line-height: 35px"><sup style="color:red ">*</sup>新闻类型：</label>
    <div class="col-sm-6">
      <select id="goal" [(ngModel)]="editWelData.type" class="form-control">
        <option value="1">品牌快讯</option>
        <option value="2">网站动态</option>
        <option value="3">线下活动</option>
        <option value="4">媒体报道</option>
      </select>
    </div>
  </div>

  <div class="form-group row">
    <div class="col-md-2">
      <span><sup style="color:red ">*</sup>新闻内容：</span>
    </div>
    <div class="col-md-8" >
      <app-tinymce-editor [receiveContent]="receiveContent" (updateContent)="updateContent($event)"></app-tinymce-editor>
    </div>
  </div>

  <div class="form-group row">
    <label class="col-sm-2 form-control-label text-left" style="line-height: 35px"></label>
    <div class="col-sm-6">
      <button type="button" class="btn btn-primary" (click)="save()">保存</button>
      <button type="button" class="btn btn-secondary" (click)="backPrevPage()">返回</button>
    </div>
  </div>
</div>

